#include "mainwindow.h"
#include <iostream>
using namespace std;
#include <string>
#include "tinyxmlconfig.h"

int main(int argc, char *argv[])
{
    TiXmlConfig cfg("kinect.xml");
    if(!cfg.GetStatus())exit(1);
    for(int i=0;i<cfg.getSize();i++){
        cout<<cfg.getTitle(i)<<":"<<cfg.getContent(i)<<endl;
    }
    TiXmlData data("data.xml");
    if(!data.GetStatus())exit(1);
    data.setContent(1,"300");
    return 0;
}
